import { useToggle } from '@vant/use';
export const useLeftDialog = () => {
    const [showLeft, toggle] = useToggle(false)
    const gridtextList = [
        {
            title: "付款方式",
            icon: 'one.png',
            value: '',
            type: 'paymentMethods'
        },
        {
            title: "个人信息",
            icon: 'person.png',
            value: '',
            type: 'personalInformation'
        },
        {
            title: "消息通知",
            icon: 'xxtz.png',
            value: '',
            type: 'paymentMethods'
        },
        {
            title: "安全设置",
            icon: 'aq.png',
            value: '',
            type: 'securitySettings'
        },
        {
            title: "系统语言",
            icon: 'xtyy.png',
            value: '简体中文',
            type: 'countryOfRegistration'
        }
    ]
    const concerningList = [
        {
            title: "帮助中心",
            icon: 'help.png',
            value: '',
            isLink: true,
            type: 'helpCenter'
        },
        {
            title: "隐私政策",
            icon: 'yszc.png',
            value: '',
            isLink: true, 
            type: 'privacyPolicy'
        },
        {
            title: "关于我们",
            icon: 'about.png',
            value: '',
            isLink: true,
            type:'aboutUs'
        },
        {
            title: "退出登陆",
            icon: 'tcdl.png',
            value: '',
            isLink: false,
            type:'logOut'
        }
    ]
    return {
        showLeft,
        toggle,
        gridtextList,
        concerningList
    }
}